GET BACKBUFFER PITCH
This command will return the pitch of the backbuffer.
Return Integer=GET BACKBUFFER PITCH()
The pitch of the backbuffer
You can pass this data to a DLL to assist in the direct access of backbuffer memory. The pitch is similar to the width of the backbuffer, and may be larger should the backbuffer use a cache at the end of each horizontal line. You can only use this command when you have used the LOCK BACKBUFFER command.
cls
set display mode 800,600,32
wait 1000*8
print "backbuffer pitch "+str$(get backbuffer pitch())
do
loop
end
DISPLAY Commands Menu
Index